<!doctype html>
<html lang="zh-cmn-Hans">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0">
    <meta name="format-detection" content="telephone=no" />

    <link rel="dns-prefetch" href="//static.matouapp.ymatou.com">
    <link rel="dns-prefetch" href="//staticontent.matouapp.ymatou.com">
    <link rel="dns-prefetch" href="//staticwap.ymatou.com">
    <link rel="shortcut icon" type="image/x-icon" href="http://staticontent.ymatou.com/ymtapp/matouapp.ico" />
    <script data-js-path="redraw.js">
        !(function(f,p){var c=navigator.userAgent,d=/iphone|ipad|ipod/i.test(c),b=/android/ig.test(c),a=/Mobile/i.test(c)||d||b;var o=document.querySelector("[name=viewport]")||(function(){var q=document.createElement("meta");q.name="viewport"})(),k=o.content||"",j=k.match(/initial\-scale=([\d\.]+)/),i=k.match(/width=([\d\.]+)/),m=d?window.devicePixelRatio?Math.min(window.devicePixelRatio,3):1:1,e=document.documentElement,n=m*(e.dataset.mw||750),g=1/m,h;f=f||320;p=p||16;if(o){if(j){k=k.replace(/initial\-scale=([\d\.]+)/,"initial-scale="+g)}else{k+=",initial-scale="+g}o.content=k.replace(/minimum\-scale=([\d\.]+)/,"minimum-scale="+g).replace(/maximum\-scale=([\d\.]+)/,"maximum-scale="+g)}else{o=doc.createElement("meta");o.name="viewport";o.content=k;e.firstElementChild.appendChild(o)}var l=function(){var r=e.getBoundingClientRect().width;var q=Math.min(r,n)/f*p;e.style.fontSize=q+"px"};if(a){window.addEventListener("resize",function(){clearTimeout(h);h=setTimeout(l,300)},false);l()}else{e.style.fontSize="16px"}})(375,16);
    </script>
    <style type="text/css">
    *{
        margin:0;
        padding:0;
    }
    .bg{
        position:absolute;
        width:100%;
        min-height:35.53125rem;
        height:100%;

        background-size:content;
    }
    .info{
        position:absolute;
        top:5.3125rem;
        left:50%;
        transform: translate(-50%,0);
        -webkit-transform: translate(-50%,0);
        text-align:center;
    }
    .info .pic{
        width:3.875rem;
        height:3.875rem;
        border-radius:50%;
        background-size:contain;
        margin-bottom:0.6875rem;
    }
    .info h3{
        color:#ffebaf;
        font-size:0.9375rem;
    }
    </style>
</head>

<body>
    <a href="http://download.app.ymatou.com/index.aspx?from=inapp25" class="bg">
       <img src="http://staticontent.ymatou.com/images/activity/spring_festival/packet_share_bg.jpg" alt="" height="100%" width="100%">
    </a>
    <script type="text/javascript" src="http://static.pk.ymatou.com/scripts/zepto,ejs-aee82b3102.js?v=1"></script>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js?006"></script>
    <script type="text/javascript" src="http://static.matouapp.ymatou.com/js/ymtApi.2015101901.js?wxAutoInit=1"></script>
    <script>
       YmtApi.isWechat && YmtApi.initWechat({
           shareConf:{
               title:'没赶上这场红包雨，感觉错过了好几百万',
               desc:'疯了！洋码头疯了！一场猛烈的红包雨正在袭击，不来是真疯了！能用红包解决的问题，我们尽量少用言语。',
               imgUrl:'http://staticontent.ymatou.com/images/activity/spring_festival/share_icon.png'
           }
       });
       var search = YmtApi.utils.getUrlObj();
       $.ajax({
           url: YmtApi.utils.addParam('http://ja.m.ymatou.com/api/User/GetUserNickById',{
            userId:search.uid
           }),
           type: 'GET',
           dataType: 'jsonp',
           timeout: 30000, //1分钟过期
           cache: true,
           success: function (res) {
               if (res && (res.Code === 200 || res.Code === '200')) {
                    var data = res.Data;
                    var html = [
                        '<div class="info">',
                            '<div class="pic" style="background-image:url('+ (data.Avatar || 'http://staticontent.ymatou.com/images/activity/christmas/portrait.png') +')"></div>',
                            '<h3>'+data.NickName+'</h3>',
                        '</div>'
                    ]
                    $('.bg').append(html.join(''));
               }
           },
           error: function () {
               showLog('系统挤爆了，请稍后再试!');
           }
       });
   </script>
</body>

</html>
